package lab02.test28;

import java.util.*;

public class Test {
    public static void main(String[] args) {

        System.out.println("请输入圆的半径：");
        Scanner sc = new Scanner(System.in);


        try{
            double r = sc.nextDouble();
            System.out.println("圆的面积："+(3.14*r*r));

        }catch (InputMismatchException e){

            System.out.println("数据类型错误！");
        }


    }
}
